package cn.xxliang.platapp.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;

import javax.validation.constraints.NotNull;

import org.springframework.web.multipart.MultipartFile;

@Data
@ApiModel("产品附件表Dto")
@EqualsAndHashCode(callSuper = false)
public class ProductFileInfoDto {
    @ApiModelProperty(value = "关联的产品ID", required = true)
    @NotNull(message = "关联的产品ID不能为空")
    private String platformProductId;
    
    @ApiModelProperty(value = "产品附件ID", required = true)
    @NotNull(message = "产品附件ID不能为空")
    private Integer productFileId;
    
    @ApiModelProperty(value = "文件列表，支持多个文件上传，单个文件不允许超过500MB", required = true)
    @NotNull(message = "文件列表不能为空")
    private List<MultipartFile> fileList; 
    
    
    //此属性逻辑实现，Dto层不参与数据库操作
    //@ApiModelProperty(value = "路径")
    //private String path;
    
    //此属性逻辑实现，Dto层不参与数据库操作
    //@ApiModelProperty(value = "创建时间")
    //private String createTime;
    
    //此属性逻辑实现，Dto层不参与数据库操作
    //@ApiModelProperty(value = "更新时间")
    //private String updateTime;
}